package com.sdgakj.enums;

public enum EnumOrderOp {
    VIEW(1, "查看订单"), CHANGE(2, "修改订单"), CHECK(3, "审核订单"), CHECKREFUSE(4, "审核订单拒绝"), CHECKOK(5, "审核通过用户退款申请并指派财务"),
    ENSURE_REFUND(6, "确认退款完成"),REPLAY_MONEY(7,"重新打款");
    private Integer code;

	private String name;

    private EnumOrderOp(Integer code, String name) {
		this.code = code;
		this.name = name;
	}

    public Integer getCode() {
		return code;
	}

    public void setCode(Integer code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static EnumOrderOp getEnum(String value) {
		for (EnumOrderOp e : EnumOrderOp.values()) {
			if (value.equals(e.getCode())) {
				return e;
			}
		}
		return null;
	}
}
